package com.itheima.singleinstance;

public class test
{
    public static void main(String[] args) {
        A a1=A.a;
        A a2=A.a;
        B b2=B.getInstance();
        B b1=B.getInstance();
        System.out.println(a1==a2);
        System.out.println(b1==b2);
    }
}
